package com.lkl.controller;

import com.lkl.bean.BaseReq;
import com.lkl.bean.BaseResp;
import com.lkl.service.ChangeOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author lkl
 * @Description
 * @Date 2022/3/28
 */
@RequestMapping("changeOrder")
@RestController
public class ChangeOrderController {

    @Autowired
    private ChangeOrderService changeOrderService;

    @RequestMapping("/updateById")
    public BaseResp updateById(@RequestBody BaseReq baseReq){

       return changeOrderService.updateById(baseReq);

    }

}
